![]() |
WOLF core
WOLF: A Modular Estimation Framework for Robotics
|
Breadth-first search of the shortest path of factors between two nodes of the factor graph. More...
#include <core/utils/graph_search.h>
Public Member Functions | |
| GraphSearch () | |
| Default constructor. More... | |
| ~GraphSearch () | |
| Destructor. More... | |
| FactorBasePtrList | computeShortestPath (NodeStateBlocksPtr node1, NodeStateBlocksPtr node2, const unsigned int max_graph_dist=0) |
| Computes the shortest path of factors between two nodes, up to a graph distance (0: unlimited). Empty if not found. More... | |
| std::set< NodeStateBlocksPtr > | getNeighborFrames (const std::set< NodeStateBlocksPtr > &nodes) |
| Returns the not visited nodes sharing a factor with some nodes, storing their parents. More... | |
Static Public Member Functions | |
| static FactorBasePtrList | shortestPath (NodeStateBlocksPtr node1, NodeStateBlocksPtr node2, const unsigned int max_graph_dist=0) |
| Computes the shortest path of factors between two nodes (see computeShortestPath()) More... | |
Breadth-first search of the shortest path of factors between two nodes of the factor graph.
| GraphSearch::GraphSearch | ( | ) |
Default constructor.
| GraphSearch::~GraphSearch | ( | ) |
Destructor.
| FactorBasePtrList GraphSearch::computeShortestPath | ( | NodeStateBlocksPtr | node1, |
| NodeStateBlocksPtr | node2, | ||
| const unsigned int | max_graph_dist = 0 |
||
| ) |
Computes the shortest path of factors between two nodes, up to a graph distance (0: unlimited). Empty if not found.
| std::set< NodeStateBlocksPtr > GraphSearch::getNeighborFrames | ( | const std::set< NodeStateBlocksPtr > & | nodes | ) |
Returns the not visited nodes sharing a factor with some nodes, storing their parents.
|
inlinestatic |
Computes the shortest path of factors between two nodes (see computeShortestPath())